<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<script type="text/javascript">
		console.log(location);

		setInterval(function () {
			location.replace('http://www.baidu.com');
		},2000)
	</script>
</head>
<body>
	
</body>
</html>